Repository navigation
chore: sync fork with upstream — restore the security rules #579 dropped - #6
Merged
Merged
Conversation
…es/ files (addyosmani#585) A file under skills/<name>/references/ sits one directory deeper than SKILL.md, so a link to a shared checklist needs ../../../references/ from there. The validator only read SKILL.md, which left that off-by-a-level mistake unguarded in the one place it can now happen (hardening-patterns.md on main, optimization-patterns.md in addyosmani#580). The rule is unchanged: only references/*.md links, fenced blocks exempt, paths that do not exist yet ignored. The file set grows to include the markdown files directly inside each skill's references/ directory, and every link resolves from the file that contains it. The failure hint names the three-level prefix when the violation is in a reference file.
… in addyosmani#579 addyosmani#579 moved the code patterns verbatim, but three prose sections (supply chain, privacy, LLM) and the cookie bullet were rewritten rather than moved, and some rules ended up in none of SKILL.md, the reference, or the shared checklist. Restores them inline: the sameSite value and its CSRF reason, why forced audit fixes are dangerous, the audit signatures commands and "not automatic proof of compromise", the retention TTL, auditable consent, the (2025) on the OWASP LLM list, and "the full system prompt" plus "validate every tool argument" in the LLM rule. Red Flags already audits the system-prompt item, so the rule and its audit agree again. Same 216 lines, +55 words.
Add platform coverage for all six Node test suites, validators, and routing checks while preserving existing Ubuntu check names. Require both matrix jobs before plugin validation and retain failures from each platform.
`parseFrontmatter` splits each line on its first colon. That is enough to read `name` and `description`, and it is forgiving by design — but it means a SKILL.md whose frontmatter is not valid YAML passes every check in the linter. The hosts that consume these skills do not share that forgiveness. Per Cursor staff in addyosmani#494, attaching a skill to a message parses its frontmatter as YAML, and a parse failure fails the request with a generic server error and takes the rest of the chat's context with it. So the repo could ship frontmatter that breaks a host while CI stayed green. Three shapes pass the current linter and are rejected by a strict parser (confirmed against ruby's psych, each isolated by mutating only the frontmatter of a real SKILL.md that otherwise lints clean): description: Use this: when X colon-space: YAML reads a nested mapping \tkey: value tab indentation is invalid YAML whitespace description: "unterminated an unclosed quote All three now fail with the line number and the fix. Deliberate boundaries: a colon with no trailing space is untouched, so `https://example.com/a:b` still passes, and a duplicate key is NOT reported because `safe_load` accepts one — the rule tracks the parser, not taste. This was verified once by hand against all 25 skills in the addyosmani#494 thread. This makes it a check instead of a memory. Narrow on purpose: the repo has no package.json and therefore no YAML parser to depend on, so this is a small set of rules aimed at the classes actually observed to break a host, not a YAML implementation. No current frontmatter uses block scalars or multi-line values and the check says so. All 25 skills still pass with 0 errors, every validator exits 0, and the six script suites are green (35 pass in skill-lint-test). Mutation-tested 4/4: removing the call, widening the colon rule to any colon, and dropping either the tab or the unterminated-quote rule each fail the new tests. Refs addyosmani#494
`descriptionFromMd` in validate-commands.js splits each frontmatter line on its first colon — the same forgiving read the skill linter used before the strict rules landed. So a command whose frontmatter is not valid YAML passes every check here, and Claude Code parses that frontmatter when the command is loaded. Same class of gap as the SKILL.md one, on the other set of files: the addyosmani#494 thread verified all 25 SKILL.md files *and* the command files by hand. This makes the second half a check too, sharing the rules rather than restating them. All nine current commands already pass — confirmed independently against ruby's psych before writing this — so it is a guard, not a repair. That is the same shape the skills half had, and the same reason: the manual verification was real, it just could not stay true on its own. Scoped to `.claude/commands/*.md`. The `.gemini/` and `commands/` directories are TOML and already go through a real TOML parser, so a malformed one surfaces as a missing description in the existing check. A test pins that the YAML rules are NOT applied to them, since a TOML description legitimately carries a colon and running these rules over it would fail nearly every command. The test sandbox copies the validator into a temp tree, so it now copies scripts/lib/skill-lint.js beside it. Without that every existing test fails with a module-not-found, which is how I found it. Five new tests. Mutation-tested 2/2: skipping the check, and reporting its errors without counting them, each fail two. Every validator exits 0 and all six script suites pass. Refs addyosmani#494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fifth upstream sync, picking up 11 commits (6 substantive) from
addyosmani/agent-skills@main(bcab6a1, 2026-09-22). Small, and worth not sitting on — two of these repair damage that #4 pulled in two days ago.Why now
d1463fdrestores security rules that#579dropped. That commit — merged here in #5 — movedsecurity-and-hardening's code patterns into a skill-local reference. The patterns moved verbatim, but three prose sections (supply chain, privacy, LLM) and the cookie bullet were rewritten rather than moved, and several rules ended up in none ofSKILL.md, the new reference, or the shared checklist. What comes back: thesameSitevalue and its CSRF reason, why forced audit fixes are dangerous, the audit-signatures commands and the "not automatic proof of compromise" caveat, the retention TTL, auditable consent, the (2025) marker on the OWASP LLM list, and "the full system prompt" plus "validate every tool argument" in the LLM rule. The Red Flags section already audited the system-prompt item, so rule and audit agree again.Verified present after the merge rather than taken on trust — all four spot-checked strings are back in
skills/security-and-hardening/SKILL.md.cb4366fcloses the hole that let it through (addyosmani#585):validate-reference-links.jsonly checked links inSKILL.md, not links inside a skill's ownreferences/files. The content moved into exactly the blind spot the validator did not cover.The rest
4af909bholds commands to the same frontmatter rules as skills, and6fa76famakes the validator reject frontmatter that is not valid YAML instead of silently misparsing it.95801adadds avalidate-platformsmatrix job running the validators and eval runner on macOS and Windows alongside the existing Ubuntu jobs.be49649adds aclaude plugin evalpilot forcode-review-and-quality.Conflicts
None. First clean sync — no version bump this round, so the two manifests that normally collide were untouched, and no new tag is needed (still 0.6.10).
Verification
Note that CI will now also run the new macOS and Windows matrix job, which this fork has never exercised.
Fork-only work untouched: both custom skills,
highway-skills:prefixes across all 8 commands, and thetest-installjob still installinghighway-skills@highway-agent-skills.🤖 Generated with Claude Code